.class public Lcom/facebook/orca/contacts/picker/ContactPickerView;
.super Lcom/facebook/orca/activity/OrcaFragment;
.source "ContactPickerView.java"


# static fields
.field private static final J:Ljava/util/regex/Pattern;


# instance fields
.field private K:Lcom/facebook/orca/contacts/picker/ContactPickerViewListAdapter;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private L:Lcom/facebook/orca/contacts/picker/ContactPickerPickingLogic;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private M:Landroid/view/View;

.field private N:Landroid/widget/TextView;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080041
    .end annotation
.end field

.field private O:Landroid/widget/AutoCompleteTextView;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080042
    .end annotation
.end field

.field private P:Lcom/facebook/orca/contacts/picker/MembersBasketViewExpanded;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080047
    .end annotation
.end field

.field private Q:Lcom/facebook/orca/contacts/picker/MembersBasketViewShrunk;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080044
    .end annotation
.end field

.field private R:Landroid/view/View;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080046
    .end annotation
.end field

.field private S:Landroid/widget/TextView;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080048
    .end annotation
.end field

.field private T:Landroid/widget/ScrollView;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080045
    .end annotation
.end field

.field private U:Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;

.field private V:Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;

.field private W:Lcom/facebook/orca/contacts/picker/ContactPickerView$OnPickedContactsChangedListener;

.field private X:Lcom/google/common/collect/ImmutableList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/common/collect/ImmutableList",
            "<",
            "Lcom/facebook/orca/contacts/data/PickedUser;",
            ">;"
        }
    .end annotation
.end field

.field private Y:Z

.field private Z:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 42
    const-string v0, "\\s"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->J:Ljava/util/regex/Pattern;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    .line 35
    invoke-direct {p0}, Lcom/facebook/orca/activity/OrcaFragment;-><init>()V

    .line 78
    sget-object v0, Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;->CREATE_THREAD:Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;

    iput-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->V:Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/contacts/picker/ContactPickerView;)Lcom/facebook/orca/contacts/picker/ContactPickerViewListAdapter;
    .locals 1
    .parameter

    .prologue
    .line 35
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->K:Lcom/facebook/orca/contacts/picker/ContactPickerViewListAdapter;

    return-object v0
.end method

.method private a(Ljava/lang/String;)Lcom/facebook/orca/users/Name;
    .locals 4
    .parameter

    .prologue
    const/4 v3, 0x1

    .line 306
    sget-object v0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->J:Ljava/util/regex/Pattern;

    const/4 v1, 0x2

    invoke-virtual {v0, p1, v1}, Ljava/util/regex/Pattern;->split(Ljava/lang/CharSequence;I)[Ljava/lang/String;

    move-result-object v0

    .line 307
    array-length v1, v0

    if-ne v1, v3, :cond_0

    .line 308
    new-instance v0, Lcom/facebook/orca/users/Name;

    const/4 v1, 0x0

    invoke-direct {v0, p1, v1, p1}, Lcom/facebook/orca/users/Name;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 310
    :goto_0
    return-object v0

    :cond_0
    new-instance v1, Lcom/facebook/orca/users/Name;

    const/4 v2, 0x0

    aget-object v2, v0, v2

    aget-object v0, v0, v3

    invoke-direct {v1, v2, v0, p1}, Lcom/facebook/orca/users/Name;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    move-object v0, v1

    goto :goto_0
.end method

.method private a(Lcom/facebook/orca/contacts/picker/ContactPickerAddPhoneOrEmailRow;)V
    .locals 3
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 249
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->O:Landroid/widget/AutoCompleteTextView;

    invoke-virtual {v0, v2}, Landroid/widget/AutoCompleteTextView;->setText(Ljava/lang/CharSequence;)V

    .line 250
    invoke-virtual {p1}, Lcom/facebook/orca/contacts/picker/ContactPickerAddPhoneOrEmailRow;->b()Lcom/facebook/orca/users/UserIdentifier$IdentifierType;

    move-result-object v0

    .line 251
    invoke-virtual {p1}, Lcom/facebook/orca/contacts/picker/ContactPickerAddPhoneOrEmailRow;->a()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v0, v2, v1}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->a(Lcom/facebook/orca/users/UserIdentifier$IdentifierType;Ljava/lang/String;Ljava/lang/String;)V

    .line 252
    return-void
.end method

.method private a(Lcom/facebook/orca/contacts/picker/ContactPickerRow;)V
    .locals 3
    .parameter

    .prologue
    .line 237
    invoke-virtual {p1}, Lcom/facebook/orca/contacts/picker/ContactPickerRow;->a()Lcom/facebook/orca/users/UserCluster;

    move-result-object v0

    .line 238
    iget-object v1, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->O:Landroid/widget/AutoCompleteTextView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/AutoCompleteTextView;->setText(Ljava/lang/CharSequence;)V

    .line 240
    iget-object v1, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->L:Lcom/facebook/orca/contacts/picker/ContactPickerPickingLogic;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/contacts/picker/ContactPickerPickingLogic;->a(Lcom/facebook/orca/users/UserCluster;)Lcom/facebook/orca/contacts/data/PickedUser;

    move-result-object v1

    .line 241
    if-eqz v1, :cond_0

    .line 242
    invoke-direct {p0, v1}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->b(Lcom/facebook/orca/contacts/data/PickedUser;)V

    .line 246
    :goto_0
    return-void

    .line 244
    :cond_0
    invoke-direct {p0, v0}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->a(Lcom/facebook/orca/users/UserCluster;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/facebook/orca/contacts/picker/ContactPickerView;Lcom/facebook/orca/contacts/picker/ContactPickerAddPhoneOrEmailRow;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 35
    invoke-direct {p0, p1}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->a(Lcom/facebook/orca/contacts/picker/ContactPickerAddPhoneOrEmailRow;)V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/contacts/picker/ContactPickerView;Lcom/facebook/orca/contacts/picker/ContactPickerRow;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 35
    invoke-direct {p0, p1}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->a(Lcom/facebook/orca/contacts/picker/ContactPickerRow;)V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/contacts/picker/ContactPickerView;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 35
    invoke-direct {p0, p1, p2}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private a(Lcom/facebook/orca/users/UserCluster;)V
    .locals 3
    .parameter

    .prologue
    .line 338
    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    const-class v2, Lcom/facebook/orca/contacts/picker/ContactPickerIdentityChooserActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 339
    const-string v1, "cluster"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 340
    const/high16 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 341
    const/4 v1, 0x1

    invoke-virtual {p0, v0, v1}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->a(Landroid/content/Intent;I)V

    .line 342
    return-void
.end method

.method private a(Lcom/facebook/orca/users/UserIdentifier$IdentifierType;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .parameter
    .end parameter
    .parameter
        .annotation runtime Ljavax/annotation/Nullable;
        .end annotation
    .end parameter
    .parameter
        .annotation runtime Ljavax/annotation/Nullable;
        .end annotation
    .end parameter

    .prologue
    .line 258
    new-instance v0, Lcom/facebook/orca/contacts/picker/ContactPickerAddContactDialog;

    invoke-virtual {p0}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    invoke-direct {v0, v1, p1, p2, p3}, Lcom/facebook/orca/contacts/picker/ContactPickerAddContactDialog;-><init>(Landroid/content/Context;Lcom/facebook/orca/users/UserIdentifier$IdentifierType;Ljava/lang/String;Ljava/lang/String;)V

    .line 260
    new-instance v1, Lcom/facebook/orca/contacts/picker/ContactPickerView$3;

    invoke-direct {v1, p0, p1}, Lcom/facebook/orca/contacts/picker/ContactPickerView$3;-><init>(Lcom/facebook/orca/contacts/picker/ContactPickerView;Lcom/facebook/orca/users/UserIdentifier$IdentifierType;)V

    invoke-virtual {v0, v1}, Lcom/facebook/orca/contacts/picker/ContactPickerAddContactDialog;->a(Lcom/facebook/orca/contacts/picker/ContactPickerAddContactDialog$Listener;)V

    .line 273
    invoke-virtual {v0}, Lcom/facebook/orca/contacts/picker/ContactPickerAddContactDialog;->show()V

    .line 274
    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 6
    .parameter
    .parameter

    .prologue
    .line 277
    invoke-direct {p0, p1}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->a(Ljava/lang/String;)Lcom/facebook/orca/users/Name;

    move-result-object v0

    .line 278
    new-instance v1, Lcom/facebook/orca/users/UserEmailAddress;

    const/4 v2, 0x0

    invoke-direct {v1, p2, v2}, Lcom/facebook/orca/users/UserEmailAddress;-><init>(Ljava/lang/String;I)V

    .line 279
    new-instance v2, Lcom/facebook/orca/users/UserBuilder;

    invoke-direct {v2}, Lcom/facebook/orca/users/UserBuilder;-><init>()V

    sget-object v3, Lcom/facebook/orca/users/User$Type;->ADDRESS_BOOK:Lcom/facebook/orca/users/User$Type;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Lcom/facebook/orca/users/UserBuilder;->a(Lcom/facebook/orca/users/User$Type;Ljava/lang/String;)Lcom/facebook/orca/users/UserBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/facebook/orca/users/UserBuilder;->a(Lcom/facebook/orca/users/Name;)Lcom/facebook/orca/users/UserBuilder;

    move-result-object v0

    invoke-static {v1}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/facebook/orca/users/UserBuilder;->a(Ljava/util/List;)Lcom/facebook/orca/users/UserBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/users/UserBuilder;->p()Lcom/facebook/orca/users/User;

    move-result-object v0

    .line 284
    new-instance v2, Lcom/facebook/orca/users/UserWithIdentifier;

    invoke-direct {v2, v0, v1}, Lcom/facebook/orca/users/UserWithIdentifier;-><init>(Lcom/facebook/orca/users/User;Lcom/facebook/orca/users/UserIdentifier;)V

    .line 285
    new-instance v0, Lcom/facebook/orca/contacts/data/PickedUser;

    const/4 v1, 0x0

    invoke-direct {v0, v2, v1}, Lcom/facebook/orca/contacts/data/PickedUser;-><init>(Lcom/facebook/orca/users/UserWithIdentifier;Lcom/facebook/orca/users/UserIdentifier;)V

    invoke-direct {p0, v0}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->b(Lcom/facebook/orca/contacts/data/PickedUser;)V

    .line 286
    return-void
.end method

.method private b(Lcom/facebook/orca/contacts/data/PickedUser;)V
    .locals 1
    .parameter

    .prologue
    .line 301
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->U:Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;

    invoke-virtual {v0, p1}, Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;->a(Lcom/facebook/orca/contacts/data/PickedUser;)V

    .line 302
    invoke-virtual {p0}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->d()V

    .line 303
    return-void
.end method

.method static synthetic b(Lcom/facebook/orca/contacts/picker/ContactPickerView;)V
    .locals 0
    .parameter

    .prologue
    .line 35
    invoke-direct {p0}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->e()V

    return-void
.end method

.method static synthetic b(Lcom/facebook/orca/contacts/picker/ContactPickerView;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 35
    invoke-direct {p0, p1, p2}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private b(Ljava/lang/String;Ljava/lang/String;)V
    .locals 6
    .parameter
    .parameter

    .prologue
    .line 289
    invoke-direct {p0, p1}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->a(Ljava/lang/String;)Lcom/facebook/orca/users/Name;

    move-result-object v0

    .line 290
    new-instance v1, Lcom/facebook/orca/users/UserPhoneNumber;

    const/4 v2, 0x0

    invoke-direct {v1, p2, p2, v2}, Lcom/facebook/orca/users/UserPhoneNumber;-><init>(Ljava/lang/String;Ljava/lang/String;I)V

    .line 291
    new-instance v2, Lcom/facebook/orca/users/UserBuilder;

    invoke-direct {v2}, Lcom/facebook/orca/users/UserBuilder;-><init>()V

    sget-object v3, Lcom/facebook/orca/users/User$Type;->ADDRESS_BOOK:Lcom/facebook/orca/users/User$Type;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Lcom/facebook/orca/users/UserBuilder;->a(Lcom/facebook/orca/users/User$Type;Ljava/lang/String;)Lcom/facebook/orca/users/UserBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/facebook/orca/users/UserBuilder;->a(Lcom/facebook/orca/users/Name;)Lcom/facebook/orca/users/UserBuilder;

    move-result-object v0

    invoke-static {v1}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/facebook/orca/users/UserBuilder;->b(Ljava/util/List;)Lcom/facebook/orca/users/UserBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/users/UserBuilder;->p()Lcom/facebook/orca/users/User;

    move-result-object v0

    .line 296
    new-instance v2, Lcom/facebook/orca/users/UserWithIdentifier;

    invoke-direct {v2, v0, v1}, Lcom/facebook/orca/users/UserWithIdentifier;-><init>(Lcom/facebook/orca/users/User;Lcom/facebook/orca/users/UserIdentifier;)V

    .line 297
    new-instance v0, Lcom/facebook/orca/contacts/data/PickedUser;

    const/4 v1, 0x0

    invoke-direct {v0, v2, v1}, Lcom/facebook/orca/contacts/data/PickedUser;-><init>(Lcom/facebook/orca/users/UserWithIdentifier;Lcom/facebook/orca/users/UserIdentifier;)V

    invoke-direct {p0, v0}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->b(Lcom/facebook/orca/contacts/data/PickedUser;)V

    .line 298
    return-void
.end method

.method private e()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 324
    iget-boolean v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->Y:Z

    if-eqz v0, :cond_0

    .line 326
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->T:Landroid/widget/ScrollView;

    iget-object v1, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->R:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getBottom()I

    move-result v1

    invoke-virtual {v0, v2, v1}, Landroid/widget/ScrollView;->smoothScrollTo(II)V

    .line 327
    iput-boolean v2, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->Y:Z

    .line 329
    :cond_0
    return-void
.end method

.method private f()V
    .locals 3

    .prologue
    .line 332
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->K:Lcom/facebook/orca/contacts/picker/ContactPickerViewListAdapter;

    invoke-static {}, Lcom/google/common/collect/ImmutableList;->g()Lcom/google/common/collect/ImmutableList;

    move-result-object v1

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/contacts/picker/ContactPickerViewListAdapter;->a(Lcom/google/common/collect/ImmutableList;Z)V

    .line 333
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->O:Landroid/widget/AutoCompleteTextView;

    iget-object v1, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->K:Lcom/facebook/orca/contacts/picker/ContactPickerViewListAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 334
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->O:Landroid/widget/AutoCompleteTextView;

    iget-object v1, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->O:Landroid/widget/AutoCompleteTextView;

    invoke-virtual {v1}, Landroid/widget/AutoCompleteTextView;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setTextKeepState(Ljava/lang/CharSequence;)V

    .line 335
    return-void
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    .line 93
    invoke-super {p0, p1, p2, p3}, Lcom/facebook/orca/activity/OrcaFragment;->a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;

    .line 94
    const v0, 0x7f030009

    invoke-virtual {p0, p1, p2, v0}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->M:Landroid/view/View;

    .line 96
    new-instance v0, Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;

    invoke-virtual {p0}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    iget-object v2, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->P:Lcom/facebook/orca/contacts/picker/MembersBasketViewExpanded;

    iget-object v3, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->Q:Lcom/facebook/orca/contacts/picker/MembersBasketViewShrunk;

    invoke-direct {v0, v1, p0, v2, v3}, Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;-><init>(Landroid/content/Context;Lcom/facebook/orca/contacts/picker/ContactPickerView;Lcom/facebook/orca/contacts/picker/MembersBasketViewExpanded;Lcom/facebook/orca/contacts/picker/MembersBasketViewShrunk;)V

    iput-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->U:Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;

    .line 98
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->P:Lcom/facebook/orca/contacts/picker/MembersBasketViewExpanded;

    iget-object v1, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->U:Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/contacts/picker/MembersBasketViewExpanded;->a(Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;)V

    .line 100
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->O:Landroid/widget/AutoCompleteTextView;

    new-instance v1, Lcom/facebook/orca/contacts/picker/ContactPickerView$1;

    invoke-direct {v1, p0}, Lcom/facebook/orca/contacts/picker/ContactPickerView$1;-><init>(Lcom/facebook/orca/contacts/picker/ContactPickerView;)V

    invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 113
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->U:Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;

    invoke-virtual {v0}, Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;->b()V

    .line 115
    if-eqz p3, :cond_0

    .line 116
    const-string v0, "pickedUsers"

    invoke-virtual {p3, v0}, Landroid/os/Bundle;->getParcelableArrayList(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-static {v0}, Lcom/google/common/collect/ImmutableList;->a(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->X:Lcom/google/common/collect/ImmutableList;

    .line 119
    :cond_0
    new-instance v0, Lcom/facebook/orca/contacts/picker/ContactPickerView$2;

    invoke-direct {v0, p0}, Lcom/facebook/orca/contacts/picker/ContactPickerView$2;-><init>(Lcom/facebook/orca/contacts/picker/ContactPickerView;)V

    iput-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->Z:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    .line 125
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->M:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

    iget-object v1, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->Z:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    .line 126
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->M:Landroid/view/View;

    return-object v0
.end method

.method public a(IILandroid/content/Intent;)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 346
    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    .line 347
    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 348
    const-string v0, "addNewPhone"

    const/4 v1, 0x0

    invoke-virtual {p3, v0, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 349
    const-string v0, "cluster"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/users/UserCluster;

    .line 350
    sget-object v1, Lcom/facebook/orca/users/UserIdentifier$IdentifierType;->PHONE:Lcom/facebook/orca/users/UserIdentifier$IdentifierType;

    invoke-virtual {v0}, Lcom/facebook/orca/users/UserCluster;->f()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v1, v0, v2}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->a(Lcom/facebook/orca/users/UserIdentifier$IdentifierType;Ljava/lang/String;Ljava/lang/String;)V

    .line 361
    :cond_0
    :goto_0
    return-void

    .line 356
    :cond_1
    const-string v0, "userWithIdentifier"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/users/UserWithIdentifier;

    .line 357
    new-instance v1, Lcom/facebook/orca/contacts/data/PickedUser;

    invoke-direct {v1, v0, v2}, Lcom/facebook/orca/contacts/data/PickedUser;-><init>(Lcom/facebook/orca/users/UserWithIdentifier;Lcom/facebook/orca/users/UserIdentifier;)V

    invoke-direct {p0, v1}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->b(Lcom/facebook/orca/contacts/data/PickedUser;)V

    goto :goto_0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 140
    invoke-super {p0, p1}, Lcom/facebook/orca/activity/OrcaFragment;->a(Landroid/os/Bundle;)V

    .line 141
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->X:Lcom/google/common/collect/ImmutableList;

    if-eqz v0, :cond_0

    .line 144
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->U:Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;

    iget-object v1, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->X:Lcom/google/common/collect/ImmutableList;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;->a(Ljava/util/Collection;)V

    .line 146
    :cond_0
    return-void
.end method

.method public a(Lcom/facebook/orca/compose/ComposeMode;)V
    .locals 1
    .parameter

    .prologue
    .line 183
    sget-object v0, Lcom/facebook/orca/compose/ComposeMode;->SHRUNK:Lcom/facebook/orca/compose/ComposeMode;

    if-ne p1, v0, :cond_0

    .line 184
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->O:Landroid/widget/AutoCompleteTextView;

    invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->requestFocus()Z

    .line 186
    :cond_0
    return-void
.end method

.method public a(Lcom/facebook/orca/contacts/data/PickedUser;)V
    .locals 1
    .parameter

    .prologue
    .line 164
    invoke-static {p1}, Lcom/google/common/collect/ImmutableList;->b(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->X:Lcom/google/common/collect/ImmutableList;

    .line 165
    return-void
.end method

.method public a(Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;)V
    .locals 2
    .parameter

    .prologue
    .line 172
    iput-object p1, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->V:Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;

    .line 173
    sget-object v0, Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;->CREATE_THREAD:Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;

    if-ne p1, v0, :cond_0

    .line 174
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->N:Landroid/widget/TextView;

    const v1, 0x7f0a0070

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 175
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->S:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 180
    :goto_0
    return-void

    .line 177
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->N:Landroid/widget/TextView;

    const v1, 0x7f0a0071

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 178
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->S:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0
.end method

.method public b()Lcom/google/common/collect/ImmutableList;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/google/common/collect/ImmutableList",
            "<",
            "Lcom/facebook/orca/contacts/data/PickedUser;",
            ">;"
        }
    .end annotation

    .prologue
    .line 189
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->U:Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;

    invoke-virtual {v0}, Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;->a()Lcom/google/common/collect/ImmutableList;

    move-result-object v0

    return-object v0
.end method

.method public b(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 158
    invoke-super {p0, p1}, Lcom/facebook/orca/activity/OrcaFragment;->b(Landroid/os/Bundle;)V

    .line 159
    const-string v0, "pickedUsers"

    iget-object v1, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->U:Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;

    invoke-virtual {v1}, Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;->a()Lcom/google/common/collect/ImmutableList;

    move-result-object v1

    invoke-static {v1}, Lcom/google/common/collect/Lists;->a(Ljava/lang/Iterable;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putParcelableArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V

    .line 161
    return-void
.end method

.method c()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    const/16 v3, 0x8

    .line 206
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->U:Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;

    invoke-virtual {v0}, Lcom/facebook/orca/contacts/picker/MembersBasketViewAdapter;->d()I

    move-result v0

    .line 207
    if-lez v0, :cond_2

    .line 208
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->P:Lcom/facebook/orca/contacts/picker/MembersBasketViewExpanded;

    invoke-virtual {v0, v4}, Lcom/facebook/orca/contacts/picker/MembersBasketViewExpanded;->setVisibility(I)V

    .line 209
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->V:Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;

    sget-object v1, Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;->ADD_MEMBERS:Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;

    if-eq v0, v1, :cond_0

    .line 210
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->S:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 217
    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->W:Lcom/facebook/orca/contacts/picker/ContactPickerView$OnPickedContactsChangedListener;

    if-eqz v0, :cond_1

    .line 218
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->W:Lcom/facebook/orca/contacts/picker/ContactPickerView$OnPickedContactsChangedListener;

    invoke-virtual {v0}, Lcom/facebook/orca/contacts/picker/ContactPickerView$OnPickedContactsChangedListener;->a()V

    .line 220
    :cond_1
    return-void

    .line 213
    :cond_2
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->P:Lcom/facebook/orca/contacts/picker/MembersBasketViewExpanded;

    invoke-virtual {v0, v3}, Lcom/facebook/orca/contacts/picker/MembersBasketViewExpanded;->setVisibility(I)V

    .line 214
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->O:Landroid/widget/AutoCompleteTextView;

    const v1, 0x7f0a0072

    invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setHint(I)V

    .line 215
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->S:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->V:Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;

    sget-object v2, Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;->ADD_MEMBERS:Lcom/facebook/orca/contacts/picker/ContactPickerView$Mode;

    if-ne v1, v2, :cond_3

    move v1, v4

    :goto_1
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    :cond_3
    move v1, v3

    goto :goto_1
.end method

.method c(Z)V
    .locals 0
    .parameter

    .prologue
    .line 229
    return-void
.end method

.method d()V
    .locals 1

    .prologue
    .line 319
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->Y:Z

    .line 320
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->M:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->requestLayout()V

    .line 321
    return-void
.end method

.method public d(Landroid/os/Bundle;)V
    .locals 0
    .parameter

    .prologue
    .line 86
    invoke-super {p0, p1}, Lcom/facebook/orca/activity/OrcaFragment;->d(Landroid/os/Bundle;)V

    .line 87
    return-void
.end method

.method public q()V
    .locals 0

    .prologue
    .line 150
    invoke-super {p0}, Lcom/facebook/orca/activity/OrcaFragment;->q()V

    .line 153
    invoke-direct {p0}, Lcom/facebook/orca/contacts/picker/ContactPickerView;->f()V

    .line 154
    return-void
.end method

.method public t()V
    .locals 2

    .prologue
    .line 131
    invoke-super {p0}, Lcom/facebook/orca/activity/OrcaFragment;->t()V

    .line 132
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->Z:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    if-eqz v0, :cond_0

    .line 133
    iget-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->M:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

    iget-object v1, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->Z:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->removeGlobalOnLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    .line 134
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/facebook/orca/contacts/picker/ContactPickerView;->Z:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    .line 136
    :cond_0
    return-void
.end method
